Ad Widget

Collapse

Use “local time” data from log type item in Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VladM
    Junior Member
    • Dec 2017
    • 2

    #1

    Use “local time” data from log type item in Zabbix

    I am using zabbix_server (Zabbix) 3.0.8 I have the following zabbix item:

    item = log[/path/to/file.log,"Processing file"]

    I also configured this item to be able to "read" log timestamp [with "log time format"="yyyypMMpddphh:mm:sspppp"]

    Zabbix stores this data in a 3 column table:

    HTML Code:
    Timestamp              Local time                Log string
    12/14/2017 01:02:36 PM 2017-12-14T13:02:33+01:00 Processing file foo.xml
    12/14/2017 01:02:36 PM 2017-12-14T13:02:29+01:00 Processing file bar.xml
    How can I create a trigger that uses the Local Time data?

    For example I want zabbix to alert me if "Local time" of the last item value is older than 1 hour relative to current time [NOW - LOCAL TIME of last item value >= 3600s]
    Last edited by VladM; 20-12-2017, 16:04. Reason: formatting
Working...